package com.xian.yoga.entity;

import java.io.Serializable;

/**
 * users
 * @author 
 */
public class Users implements Serializable {
    private Integer usersId;

    private String usersName;

    private String usersPwd;

    private String usersRole;

    private static final long serialVersionUID = 1L;

    public Integer getUsersId() {
        return usersId;
    }

    public void setUsersId(Integer usersId) {
        this.usersId = usersId;
    }

    public String getUsersName() {
        return usersName;
    }

    public void setUsersName(String usersName) {
        this.usersName = usersName;
    }

    public String getUsersPwd() {
        return usersPwd;
    }

    public void setUsersPwd(String usersPwd) {
        this.usersPwd = usersPwd;
    }

    public String getUsersRole() {
        return usersRole;
    }

    public void setUsersRole(String usersRole) {
        this.usersRole = usersRole;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Users other = (Users) that;
        return (this.getUsersId() == null ? other.getUsersId() == null : this.getUsersId().equals(other.getUsersId()))
            && (this.getUsersName() == null ? other.getUsersName() == null : this.getUsersName().equals(other.getUsersName()))
            && (this.getUsersPwd() == null ? other.getUsersPwd() == null : this.getUsersPwd().equals(other.getUsersPwd()))
            && (this.getUsersRole() == null ? other.getUsersRole() == null : this.getUsersRole().equals(other.getUsersRole()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUsersId() == null) ? 0 : getUsersId().hashCode());
        result = prime * result + ((getUsersName() == null) ? 0 : getUsersName().hashCode());
        result = prime * result + ((getUsersPwd() == null) ? 0 : getUsersPwd().hashCode());
        result = prime * result + ((getUsersRole() == null) ? 0 : getUsersRole().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", usersId=").append(usersId);
        sb.append(", usersName=").append(usersName);
        sb.append(", usersPwd=").append(usersPwd);
        sb.append(", usersRole=").append(usersRole);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}